package com.block.test.service;


import com.alibaba.fastjson.JSONObject;
import com.block.common.bean.SessionBean;
import com.block.common.vo.ResponseVo;

import javax.servlet.http.HttpServletRequest;

/**
 * 请求数据合法性校验的父类 (网关)
 */
public abstract class IValidateService {
    /**
     *
     * @param jsonObject
     * @return 返回错误码和错误信息 返回null表示 通过
     */
//    public abstract ResponseVo validata(JSONObject jsonObject, SessionBean sessionBean);
    public ResponseVo handleProcess(HttpServletRequest request, JSONObject jsonObject, SessionBean sessionBean){


        return validate(jsonObject, sessionBean);

    }

    public abstract ResponseVo validate(JSONObject jsonObject, SessionBean sessionBean);


}
